package com.zxg.zbc.domain;

import java.io.Serializable;
import java.util.Date;

public class CommonStatus implements Serializable {

  /**
   * 
   */
  private static final long serialVersionUID = 1L;

  /**
   * 总共需要完成的个数
   */
  private int               total;
  /**
   * 成功完成的个数
   */
  private int               successOk;
  /**
   * 失败完成的个数
   */
  private int               successError;
  /**
   * 完成的个数
   */
  private int               success;

  private boolean           stop             = false;

  private Date              lastUpdateTime;

  public boolean isStop() {
    return stop;
  }

  public void setStop(boolean stop) {
    this.stop = stop;
  }

  public int getTotal() {
    return total;
  }

  public void setTotal(int total) {
    this.total = total;
  }

  public int getSuccessOk() {
    return successOk;
  }

  public void setSuccessOk(int successOk) {
    this.successOk = successOk;
    this.success = this.successOk + this.successError;
  }

  public int getSuccessError() {
    return successError;
  }

  public void setSuccessError(int successError) {
    this.successError = successError;
    this.success = this.successOk + this.successError;
  }

  public int getSuccess() {
    return success;
  }

  public void setSuccess(int success) {
    this.success = success;
  }

  public static long getSerialversionuid() {
    return serialVersionUID;
  }

  public void addSuccessOk() {
    this.setSuccessOk(this.getSuccessOk() + 1);
  }

  public void addSuccessError() {
    this.setSuccessError(this.getSuccessError() + 1);
  }

  public Date getLastUpdateTime() {
    return lastUpdateTime;
  }

  public void setLastUpdateTime(Date lastUpdateTime) {
    this.lastUpdateTime = lastUpdateTime;
  }

}
